/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns;

/**
 *
 * @author Victor
 */
public class ObserverImpl implements Observer{
     private String state = "";

 public void update(Subject o) {
   state = o.getState();
   System.out.println("Update received from Subject, state changed to : " + state);
 }
}
